<div class="am-u-sm-12 widget main-w" >
	<ol class="am-breadcrumb">
		<li><a href="{:url('/admin/index')}">首页</a></li>
		<li><a href="{:url('/admin/car/index')}">业务管理</a></li>
		<li><a href="{:url('index')}">维保管理</a></li>
		<li class="am-active">{$item.maintenance_record_id?维保记录编辑:添加维保记录}</li>
	</ol>
	<form class="am-form-inline tpl-form-border-form" data-check="1" data-ajax="1">
		<input type="hidden" name="maintenance_record_id" value="{$item.maintenance_record_id}" />
		<div class="am-u-sm-10">
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">车牌号： </label>
					<div class="am-u-sm-8 cl-p">
						<input type="hidden" class="CarId" name="car_id" value="{$item.car_id}" />
						<input type="text" class="am-form-field tpl-form-no-bg  car_number" value="{$item.number}" data-check='require' data-msg="车牌号不能为空"  readonly=""/>
					</div>
				</div>
				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">维保单号： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="am-form-field tpl-form-no-bg" name="numbers" data-check='require' data-msg="维保单号不能为空" value="{$item.numbers}"  >
						</div>
					</div>
				</div>
			</div>

			<div class="am-u-sm-12" style="margin-bottom:10px ;">

				<div class="am-u-sm-6 cl-p" >
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">维保类型： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p" >
							<select name="service_type" class="service_type" data-idx="{$item.service_type?:1}">
								<option value="1">维修</option>
								<option value="2">保养</option>
							</select>
						</div>
					</div>
				</div>
				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">维保金额： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="number" class="tpl-form-input" name="price" data-check='require' data-msg="维保金额不能为空" value="{$item.price}"/>
						</div>
					</div>
				</div>
			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-6 cl-p" >
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p am-text-truncate" style="line-height: 35px;">送维/送保人： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p" >
							<input type="text" class="tpl-form-input"  name="leader"  value="{$item.leader}"   />
						</div>
					</div>
				</div>
				<div class="am-u-sm-6 cl-p" >
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">维保公司： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p" >
							<input type="text" class="tpl-form-input"  name="service_company"  value="{$item.service_company}"   />
						</div>
					</div>
				</div>
			</div>

			<div class="am-u-sm-12" style="margin-bottom:10px ;">

				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">开始时间：</label>
					<div class="am-form-group am-u-sm-8 cl-p" >
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="am-form-field tpl-form-no-bg " name="start_date" value="{$item.start_date}"  placeholder="发布时间" data-am-datepicker="" readonly="">
						</div>
					</div>
				</div>
				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">结束时间： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="am-form-field tpl-form-no-bg " name="end_date" value="{$item.end_date}"  placeholder="发布时间" data-am-datepicker="" readonly="">
						</div>
					</div>
				</div>
			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">维保公司联系人： </label>
					<div class="am-form-group am-u-sm-8 cl-p" >
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="tpl-form-input" name="service_linkman"  value="{$item.service_linkman}"  />
						</div>
					</div>
				</div>
				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">维保公司联系电话： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="number" class="tpl-form-input" name="service_phone"  value="{$item.service_phone}"  />
						</div>
					</div>
				</div>
			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-6 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p am-text-truncate" style="line-height: 35px;">公里数:</label>
					<div class="am-form-group am-u-sm-8 cl-p" >
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="tpl-form-input" name="km"  value="{$item.km}"  />
						</div>
					</div>
				</div>
				
			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">

				<div class="am-u-sm-12 cl-p" >
					<label for="user-name" class="am-u-sm-2 am-form-label cl-p"  style="line-height: 35px;">地点： </label>
					<div class="am-form-group am-u-sm-10 cl-p" >
						<div class="am-u-sm-12 cl-p" >
							<input type="text" class="tpl-form-input" name="address"  value="{$item.address}"  />
						</div>
					</div>
				</div>

			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">

				<div class="am-u-sm-12 cl-p" >
					<label for="user-name" class="am-u-sm-2 am-form-label cl-p"  style="line-height: 35px;" >备注说明：</label>
					<div class="am-form-group am-u-sm-10 cl-p" >
						<div class="am-u-sm-12 cl-p" >
							<textarea class="" rows="10" name="ps">{$item.ps}</textarea>
						</div>
					</div>
				</div>

			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">

				<div class="am-form-group am-u-sm-6 cl-p">
					<label for="user-weibo" class="am-u-sm-4 am-form-label cl-p">照片：</label>
					<div class="am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">

							<div class="am-form-group am-u-sm-3 cl-p">

								<div class="am-u-sm-10 am-margin-top-xs cl-p">
									<div class="am-u-sm-12 cl-p">
										<div class="am-form-group file-w">
											<div style="width: 150px;height: 100px;">
												<img class="fileimg" data-magnify="1"  src="{if $item.service_img}{:CxImg($item.service_img)}{else/}{$static_dir}/assets/img/noimg.gif{/if}" style="width: 100%;height: 100%;" />
												<!--<img src="{:CxImg($item.driving_license_img2)}" alt="">-->
											</div>
											<button type="button" data-type='file' class="am-btn am-btn-danger am-btn-sm "><i class="am-icon-cloud-upload"></i> 添加图片</button>
											<input type="file" name="service_img" data-type='img' style="display: none;">
										</div>
		
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>  

			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-3">&nbsp;</div>
				<div class="am-u-sm-6">
					<button type="button" class="am-btn am-btn-sm am-btn-primary am-radius keep">保存</button>
					<a href="{:url('index')}?page={$Think.get.page}" class="am-btn am-btn-sm am-btn-secondary am-radius">返回上一页</a>
				</div>
				<div class="am-u-sm-3">&nbsp;</div>
			</div>
		</div>
	</form>
</div>